package com.jingzhe.controller.sys.vo;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

public class MenuEditReqVo {
    /**
     * 主键ID : 主键id.
     */
    private Integer id;

    /**
     * 父级编号 : 父级编号.
     */
    @NotNull(message="上级菜单不能为空") 
    private Integer parentId;

    /**
     * 名称 : 名称.
     */
    @NotBlank (message="名称不能为空") 
    private String name;

    /**
     * 排序 : 排序.
     */
    private Integer sort;

    /**
     * 链接 : 链接.
     */
    private String href;

    /**
     * 目标 : 目标（mainFrame、 _blank、_self、_parent、_top）.
     */
    private String target;

    /**
     * 图标 : 图标.
     */
    private String icon;

    /**
     * 是否在菜单中显示 : 是否在菜单中显示（1：显示；0：不显示）.
     */
    private Byte showFlag;

    /**
     * 权限标识 : 权限标识.
     */
    private String permission;

    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return the parentId
     */
    public Integer getParentId() {
        return parentId;
    }

    /**
     * @param parentId the parentId to set
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the sort
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * @param sort the sort to set
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * @return the href
     */
    public String getHref() {
        return href;
    }

    /**
     * @param href the href to set
     */
    public void setHref(String href) {
        this.href = href;
    }

    /**
     * @return the target
     */
    public String getTarget() {
        return target;
    }

    /**
     * @param target the target to set
     */
    public void setTarget(String target) {
        this.target = target;
    }

    /**
     * @return the icon
     */
    public String getIcon() {
        return icon;
    }

    /**
     * @param icon the icon to set
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * @return the showFlag
     */
    public Byte getShowFlag() {
        return showFlag;
    }

    /**
     * @param showFlag the showFlag to set
     */
    public void setShowFlag(Byte showFlag) {
        this.showFlag = showFlag;
    }

    /**
     * @return the permission
     */
    public String getPermission() {
        return permission;
    }

    /**
     * @param permission the permission to set
     */
    public void setPermission(String permission) {
        this.permission = permission;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "MenuEditReqVo [id=" + id + ", parentId=" + parentId + ", name="
                + name + ", sort=" + sort + ", href=" + href + ", target="
                + target + ", icon=" + icon + ", showFlag=" + showFlag
                + ", permission=" + permission + "]";
    }

}
